<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:template name="vessel_basic_info">
		<table cellpadding="2" cellspacing="2" width="100%" align="center">
			<tr>
				<td valign="middle" align="center" class="imagetitle" width="40%">
					<xsl:choose>
						<xsl:when test="photo != ''">
							<img src="{$media_path}/{photo}" border="1" style="border-color:{$color_main_first1};">
							<xsl:attribute name="alt">YACHT ID#<xsl:value-of select="/page/vessel_id"/></xsl:attribute>
							</img>	
						</xsl:when>
						<xsl:otherwise>
							<img src="{$img_path_templates}/{$header_bg_color}/buttons/no_image_big.gif" border="1" style="border-color:{$color_main_first1};" alt="There is no main profile photo for YACHT ID#{/page/vessel_id}"/>
							<xsl:if test="string-length(location)>0"><br/></xsl:if>
						</xsl:otherwise>
					</xsl:choose>
				</td>
				<td valign="top" width="60%" align="left">
					<table cellpadding="2" cellspacing="2" width="100%">
						<tr>
							<td colspan="2" bgcolor="{$color_right_info}" class="yachtid">
								<strong>Yacht ID#&#160;-&#160;<xsl:value-of select="/page/vessel_id" disable-output-escaping="yes"/></strong>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="{$color_right_info}"><strong>LOA:</strong>&#160;</td>
							<td align="left" width="100%" class="tborder99" style="border-bottom-color:{$color_right_info};">
								<xsl:choose>
									<xsl:when test="string-length(strLength_0)>0">
										<xsl:value-of select="strLength_0"/> (<xsl:value-of select="strLength_1"/> m)
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="{$color_right_info}"><strong>Year:</strong></td>
							<td align="left" width="100%" class="tborder99" style="border-bottom-color:{$color_right_info};">
								<nobr>
									<xsl:choose>
										<xsl:when test="string-length(strManufacturerYear)>0">
											MFG&#160;<xsl:value-of select="strManufacturerYear"/>
										</xsl:when>									
										<xsl:otherwise>-</xsl:otherwise>
									</xsl:choose>
									<xsl:choose>
										<xsl:when test="string-length(strModelYear)>0">
											/&#160;Model&#160;<xsl:value-of select="strModelYear"/>
										</xsl:when>									
										<xsl:otherwise></xsl:otherwise>
									</xsl:choose>
									<xsl:choose>
										<xsl:when test="string-length(strRefitYear)>0">
											/&#160;RF<xsl:value-of select="strRefitYear"/>
										</xsl:when>									
										<xsl:otherwise></xsl:otherwise>
									</xsl:choose>
								</nobr>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="{$color_right_info}"><strong>Builder:</strong></td>
							<td align="left" width="100%" class="tborder99" style="border-bottom-color:{$color_right_info};">
								<xsl:choose>
									<xsl:when test="string-length(strManufacturer)>0">
										<xsl:value-of select="strManufacturer"/>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="{$color_right_info}"><strong>Model:</strong></td>
							<td align="left" width="100%" class="tborder99" style="border-bottom-color:{$color_right_info};">
								<xsl:choose>
									<xsl:when test="string-length(strModel)>0">
										<xsl:value-of select="strModel"/>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="{$color_right_info}"><strong>Category:</strong></td>
							<td align="left" width="100%" class="tborder99" style="border-bottom-color:{$color_right_info};">
								<xsl:choose>
									<xsl:when test="string-length(strCathegory)>0">
										<xsl:value-of select="strCathegory"/>
									</xsl:when>
									<xsl:otherwise>-</xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" bgcolor="{$color_right_info}"><strong>Location:</strong></td>
							<td align="left" width="100%" class="tborder99" style="border-bottom-color:{$color_right_info};"><xsl:value-of select="location" disable-output-escaping="yes"/></td>
						</tr>
						<tr><td>&#160;</td></tr>
						<tr>
							<td valign="top" colspan="2" align="center">
								<xsl:attribute name="bgcolor">
									<xsl:choose>
										<xsl:when test="isFractional = 1">#FFF5D6</xsl:when>
										<xsl:otherwise><xsl:value-of select="$color_right_info"/></xsl:otherwise>
									</xsl:choose>
								</xsl:attribute>
								<strong><xsl:if test="isFractional = 1">Fractional </xsl:if>Price:</strong>&#160;&#160;
								<xsl:choose>
									<xsl:when test="strPoaPrice='1'"><b><nobr>Price On Application</nobr></b></xsl:when>
									<xsl:otherwise>
										<nobr>
											<xsl:if test="not(strTOriginalCurrId = //page/curr_id)">(</xsl:if>
											<xsl:call-template name="price">
						  						<xsl:with-param name="value"><xsl:value-of select="strAskPrice"/></xsl:with-param>
											</xsl:call-template>
											<xsl:if test="not(strTOriginalCurrId = //page/curr_id)">) Approx.</xsl:if>
											&#160;<xsl:value-of select="strCurrSymbol"/>
											<xsl:if test="not(strTOriginalCurrId = //page/curr_id)">
			  									<br/>
												<xsl:call-template name="price">
					  								<xsl:with-param name="value"><xsl:value-of select="strTOriginalPrice"/></xsl:with-param>
												</xsl:call-template>
						  						&#160;<xsl:value-of select="strTOriginalCurrSymbol"/>
											</xsl:if>
										</nobr>
									</xsl:otherwise>				
								</xsl:choose>
							</td>
						</tr>
						<xsl:if test="isFractional = 1">
							<tr>
								<td valign="top" colspan="2" align="center" bgcolor="#FFF5D6">
									&#160;Fractional Shares:&#160;&#160;1/<xsl:value-of select="FracAmount"/>
								</td>
							</tr>
						</xsl:if>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" bgcolor="{$color_main_first1}" style="color:{$bg_pagecolor};">
					<xsl:choose>
						<xsl:when test="not(//page/vessel_details)">
							<a href="main.asp?-vessel_detail.asp-&amp;vessel_id={/page/vessel_id}&amp;curr_id={//page/curr_id}&amp;vd=1" class="linkbold" title="Yacht ID#{/page/vessel_id} Details"><font color="{$bg_pagecolor}">View Yacht Details</font></a>
						</xsl:when>
						<xsl:otherwise><font class="imagetitle">View Yacht Details</font></xsl:otherwise>
					</xsl:choose>
					&#160;&#160;|&#160;&#160;
					<xsl:choose>
						<xsl:when test="/page/vessel/show_view_photos_link">
							<a href="#" class="linkbold">
								<xsl:attribute name="title">YACHT ID#<xsl:value-of select="/page/vessel_id"/> has image(s)</xsl:attribute>
								<xsl:attribute name="onClick">
									window.open('main.asp?-vessel_photos.asp-fvessel_id=<xsl:value-of select="/page/vessel_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
								</xsl:attribute>
								<font color="{$bg_pagecolor}">Yacht Photos</font>
							</a>
						</xsl:when>
						<xsl:otherwise><font class="imagetitle">Yacht Photos</font></xsl:otherwise>
					</xsl:choose>
					&#160;&#160;|&#160;&#160;
					<xsl:choose>
						<xsl:when test="/page/vessel/show_view_vr_tours_link">
							<a href="#" title="Yacht ID#{/page/vessel_id} has virtual tour(s)" class="linkbold">
								<xsl:attribute name="onClick">
									window.open('main.asp?-preview_ivr.asp-fvessel_id=<xsl:value-of select="/page/vessel_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
								</xsl:attribute>
								<font color="{$bg_pagecolor}">Yacht VR Tour</font>
							</a>
						</xsl:when>
						<xsl:otherwise><font class="imagetitle">Yacht VR Tour</font></xsl:otherwise>
					</xsl:choose>
					&#160;&#160;|&#160;&#160;
					<xsl:choose>
						<xsl:when test="/page/vessel/show_view_asf_link">
							<a href="#" title="Yacht ID#{/page/vessel_id} has streaming video(s)" class="linkbold">
								<xsl:attribute name="onClick">
									window.open('main.asp?-preview_asf.asp-fvessel_id=<xsl:value-of select="/page/vessel_id"/>',null,'height=500,width=600,resizable=yes,scrollbars=yes')
								</xsl:attribute>
								<font color="{$bg_pagecolor}">View Streaming Video</font>
							</a>
						</xsl:when>
						<xsl:otherwise><font class="imagetitle">View Streaming Video</font></xsl:otherwise>
					</xsl:choose>
					&#160;&#160;|&#160;&#160;
					<a href="#" title="Print Yacht ID#{/page/vessel_id} Listing" class="linkbold">
						<xsl:attribute name="onClick">
							window.open('<xsl:value-of select="$media_path"/>/brochure_generate_1.asp?vessel_id=<xsl:value-of select="//page/vessel_id"/>&amp;CompanyID=<xsl:value-of select="//page/member_company_id"/>&amp;MemberID=<xsl:value-of select="//page/member_company_id"/>&amp;AccessLevel=<xsl:value-of select="//page/access_level"/>&amp;int_login_id=<xsl:value-of select="//page/login_id"/>&amp;blnPicInlude=<xsl:value-of select="//page/BrochurePreferences/blnPicInclude"/>&amp;blnPrintPageNumbers=<xsl:value-of select="//page/BrochurePreferences/blnPrintPageNumbers"/>&amp;blnPhotos=<xsl:value-of select="//page/BrochurePreferences/blnPhotos"/>&amp;blnNoImage=<xsl:value-of select="//page/BrochurePreferences/blnNoImage"/>&amp;blnOnePage=<xsl:value-of select="//page/BrochurePreferences/blnOnePage"/>&amp;blnQuality=1&amp;blnIncludeLogo=<xsl:value-of select="//page/BrochurePreferences/blnIncludeLogo"/>&amp;blnIncludeContact=<xsl:value-of select="//page/BrochurePreferences/blnIncludeContact"/>&amp;blnUseHFSpace=<xsl:value-of select="//page/BrochurePreferences/blnUseHFSpace"/>&amp;blnIncludeDetails=<xsl:value-of select="//page/BrochurePreferences/blnIncludeDetails"/>&amp;blnCoverInlude=<xsl:value-of select="//page/BrochurePreferences/blnCoverInlude"/>&amp;blnBrochuresLayOut=<xsl:value-of select="//page/BrochurePreferences/blnBrochuresLayOut"/>&amp;MainProfilePhotoOnly=<xsl:value-of select="//page/BrochurePreferences/blnMainProfileOnly"/>&amp;fldUserFontFace=<xsl:value-of select="//page/BrochurePreferences/blnFontName"/>&amp;fldUserFontSize=<xsl:value-of select="//page/BrochurePreferences/blnFontSize"/>&amp;blnLayout=<xsl:value-of select="//page/BrochurePreferences/blnLayout"/>&amp;intPaperSize=<xsl:value-of select="//page/BrochurePreferences/intPaperSize"/>&amp;OtherSalesman=-2&amp;curr_id=<xsl:value-of select = "//page/curr_id"/>&amp;measure_id=<xsl:value-of select = "//page/measure_id"/>&amp;ph=1&amp;print_full_listing=1&amp;template=1&amp;blnBrochureConsumer=1',null,'height=500,width=700,resizable=yes,scrollbars=yes')
						</xsl:attribute>
						<font color="{$bg_pagecolor}">Print Listing</font>
					</a>
					&#160;&#160;|&#160;&#160;
					<a href="main.asp?-email_to_a_friend.asp-fvessel_id={//page/vessel_id}&amp;companies_id={//page/MemberCompanyId}&amp;manufacturer={//page/vessel_basic_info/strManufacturer}&amp;category={//page/vessel_basic_info/strCathegory}&amp;home_directory={//page/home_directory}&amp;company_name={//page/member_name}" class="linkbold" title="Email to a Friend"><font color="{$bg_pagecolor}">Email to a Friend</font></a>	&#160;&#160;|&#160;&#160;
					<a href="{$root}main.asp?-email_send.asp-&amp;vessel_id={//page/vessel_id}&amp;curr_id={//page/curr_id}&amp;is_my={//page/is_featured_vessel}" class="linkbold" title="Send Email"><font color="{$bg_pagecolor}">Send Email</font></a>
				</td>
			</tr>
			<xsl:if test="string-length(//page/sponsored/textHTML)>0">
				<xsl:value-of select="//page/sponsored/textHTML" disable-output-escaping="yes"/>
			</xsl:if>
			</table>
	</xsl:template>
</xsl:stylesheet>
